package sisdroid.client;

import java.util.HashSet;
import java.util.Set;

import sisdroid.client.model.Location;

public class CompositeDiscoverer implements NetDiscoverer
{
	NetDiscoverer theOne;
	NetDiscoverer theOther;
	
	
	public CompositeDiscoverer( NetDiscoverer one, NetDiscoverer other )
	{
		theOne = one;
		theOther = other;
	}

	@Override
	public Set<Location> getNetIDS()
	{
		Set<Location> result = new HashSet<Location>();
		result.addAll( theOne.getNetIDS() );
		result.addAll( theOther.getNetIDS() );
		return result;
	}

}
